﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using System.Web.Mvc;

namespace JewererBasic.Models
{    
    public class ItemOrder
    {
        public ORDER Order { get; set; }
        public List<OrderProduct> Products { get; set; }
    }

    public class OrderDetail
    {
        public ORDER Order { get; set; }
        public List<OrderProduct> Products { get; set; }
        public List<ProcessOfBag> Processes { get; set; }
    }

    public class OrderProduct
    {
        public int Index { get; set; }

        [DisplayName("Product ID")]
        public string ProductId { get; set; }

        [DisplayName("Kind Id")]
        public int KindId { get; set; }

        [DisplayName("Kind")]
        public string Kind { get; set; }

        [DisplayName("Size")]
        public double Size { get; set; }

        [DisplayName("Weight")]
        public double Weight { get; set; }

        [DisplayName("Quantity")]
        public int Quantity { get; set; }

        [DisplayName("Total Finish")]
        public int TotalFinish { get; set; }
    }

    public class ProcessOfBag
    {
        public string Name { get; set; }
        public int Waiting { get; set; }
        public int Finish { get; set; }
    }
}